display = GDK_BROADWAY_DISPLAY (gdk_display_get_default ());
+ /* First create all windows */
for (l = display->toplevels; l != NULL; l = l->next)
{
GdkWindowImplBroadway *impl = l->data;
window->width,
window->height,
window->window_type == GDK_WINDOW_TEMP);
+ }
+
+ /* Then do everything that may reference other windows */
+ for (l = display->toplevels; l != NULL; l = l->next)
+ {
+ GdkWindowImplBroadway *impl = l->data;
+
+ if (impl->id == 0)
+ continue; /* Skip root */
+
if (impl->transient_for)
broadway_output_set_transient_for (display->output, impl->id, impl->transient_for);
/* Can't check GDK_WINDOW_IS_MAPPED here, because that doesn't correctly handle